<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class AdminsModel extends Model
{
    protected $table = 'Admins';

    /**
     * 获取admin信息
     * @param $admin_id
     * @param array $field
     * @return \Illuminate\Database\Eloquent\Builder|Model|object|null
     */
    public static function getAdminInfo($admin_id, $field = ['*'])
    {
        return self::query()->select($field)->where('id', $admin_id)->first();
    }
}
